<!--#INCLUDE FILE="config.asp"-->
<%
 if(Session("SalesAccessLevel") <> 1 and Session("SalesAccessLevel") <> 4 ) then
	Response.Redirect("default.asp?msg=invalid")
end if
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../styles.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<!-- DATE PICKER SCRIPT -->
<link type="text/css" href="../css/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript">
	// ***** Session Timeout Warning and Redirect mReschke 2010-09-29 ***** //
function InitSessionTimer() {
    /* mReschke 2010-09-29 */
    warn_sec = <%=session.timeout%> * 60 * 1000;   	//Warning time in milliseconds
    timeout_sec = <%=session.timeout%> * 60 * 1000 + 60000;          //Actual timeout in milliseconds
    show_warning = true;
    epoch = new Date().getTime();
    CheckSessionStatus();
}
InitSessionTimer();
function CheckSessionStatus() {
    /* mReschke 2010-09-29 */
 
    //Check for session warning
    epoch2 = new Date().getTime();
     if (epoch2 > epoch + timeout_sec) {
        alert("Your session has timed out.");
        window.location.href = 'default.asp?msg=invalid_out';
    } else {
        down = setTimeout("CheckSessionStatus();", 2000);
    }
}
</script>
<script>
	$(function() {
		$( "#arrival1" ).datepicker();
		$( "#departure1" ).datepicker();
		$( "#arrival2" ).datepicker();
		$( "#departure2" ).datepicker();
	});
	</script>
  <!-- END DATE PICKER SCRIPT  ss-->
  
  <script> 
  $(document).ready(function(){
  $('ul.guest_timeline_list li:nth-child(odd)').addClass('alternate');
});
</script>


<title>Programar Llamada / Schedule Call :: CostaBaja</title>

</head>
<body>
<%
if(request("pID") <> "") then
		prospectID = request("pID")
	else 
		prospectID = 0
	end if
	
	sqlstring1 = "SELECT DISTINCT * FROM Guests WHERE GuestID = "&prospectID
	
	set objConnect = server.createObject("ADODB.Connection")   

	objConnect.Open conStr

	set TblTemp = server.createobject("Adodb.Recordset")
	
	TblTemp.Open sqlstring1, objConnect
	
	Do Until TblTemp.EOF
		Title = TblTemp("Title")
		Name = TblTemp("Name")
		Middle = TblTemp("Middle")
		Surname = TblTemp("Surname")
	TblTemp.MoveNext
	Loop
%>
<div id="main_wrapper">
    	<div class="main_wrapper_margin">
        	
            <div class="admin_top_menu">
            <!-- #INCLUDE FILE="sales_menu.asp"--> 
           	</div>
        
    		<h1>Programar Llamada / Schedule Call: <%=Name%> <%=Surname%></h1>
         	<div class="clear"></div>
            
            <hr/>
           
         
           <fieldset>
           	<legend>Call</legend>
		<form action="add_scheduleCall_process.asp" type="get">
            <table cellpadding="0" width="100%">
            	<input type="hidden" id="prospectID" name="prospectID" value="<%=prospectID%>" />
                <tr> <!-- ROW -->
                	<td width="33%">
            		<label>Enunciado / Subject: </label><br />
					<input type="text" name="subject"/>
  					</td>
                    <td width="33%">
                    <label>Fecha / Date: </label><br />
                    <input type="text" id="arrival1" name="arrival1"/>
            		</td>
                    <td width="33%">
                    <label>Type: </label><br />
                    <input type="radio" name="callType" value="1"/> Incoming <br />
                    <input type="radio" name="callType" value="0"/> Outgoing <br />
                    </td>
                </tr><!-- END ROW -->
                
                  <tr><!-- ROW -->
                <td colspan="2">
                <label>Notas / Notes: </label><br />
                <textarea cols="80" rows="5" name="Notes"></textarea>
                </td>
                 <td width="33%" align="right" valign="bottom">
            <input type="submit"  value="Enviar / Send"/>
                    </td>
                </tr><!-- END ROW -->
            
                
              
           
           </table>
		 </form>
           </fieldset><!-- END CREDIT CARD -->
           
    
    
    
    
    	</div><!-- END .main_wrapper_margin -->
	</div><!-- END #main_wrapper -->

               <!-- FOOTER -->
         
         <!--#INCLUDE file="sales_footer.asp"-->
         
         <!-- END FOOTER -->  

</body>
</html>
